package com.zto.sch.base.normal;

import org.junit.Test;

import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2020-12-15 20:54
 **/
public class StringCompare {
    public static void main(String[] args) {
        String a = "", b = "";
        if (a.equals(b)) {
            System.out.println("-------------");
        }
        System.out.println("over");
        System.out.println(a.compareTo(b));
    }

    @Test
    public void testCompare() {
        String a = "V3", b = "V12";
        System.out.println(a.compareTo(b));
    }

    @Test
    public void testSortString() {
        List<String> list = Stream.of("ZTOExpress", "ZTOFreight", "ZTOBusiness").collect(Collectors.toList());
        System.out.println("start---------" + list);
        Collections.sort(list);
        System.out.println("end---------" + list);


    }



}
